package cqie.frame.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 此表为角色-菜单中间表，主要关联角色表和菜单表，为多对多关系
表明一个角色有哪些菜单，在添加角色时要选择需要的菜单。
 * </p>
 *
 * @author HHL
 * @since 2021-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("role_menu")
@ApiModel(description = "角色菜单中间表" )
public class RoleMenu extends Model<RoleMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID")
    @TableField(value = "menuId")
    private Long menuId;
    /**
     * 角色ID
     */

    @ApiModelProperty(value = "角色ID")
    @TableField(value = "roleId")
    private Long roleId;


    @Override
    protected Serializable pkVal() {
        return null;
    }
}
